package com.zyit.service.Impl;

import com.zyit.dao.NewsDao;
import com.zyit.entity.T_notice;
import com.zyit.service.NewsService;
import com.zyit.util.Page;

import java.util.List;

public class NewsServiceImpl implements NewsService {
    private NewsDao newsDao = new NewsDao();
    public List<T_notice> findAll() {
        return newsDao.findAll();
    }

    @Override
    public Page<T_notice> findByPage(Integer pageNo) {
        return newsDao.findByPage(pageNo);
    }
    public List<T_notice> pageByPage(Integer page) {
        return newsDao.findPage(page);
    }
    public List<T_notice> findByContent(String content) {
        return newsDao.findByContent(content);
    }



    @Override
    public List<T_notice> findDetail(String id) {
        return newsDao.findDetail(id);
    }
}
